package com.multiplayer.entity;

import java.util.List;

/**
 * 用户实体类对应user表
 * @author zhangwenhao 0.0.1
 *@author liutiehui 0.0.2 2020-5-8 23:10
 */
public class User {
	//用户编号
	private String Userid;
	//学生号
	private String Sno;
	//用户密码
	private String Upassword;
	//用户信誉度
	private Double Credibility;
	//坐位
	private Seat seat;
	//学生
	private Student student;
	//评论
	private List<Comments> comments;
	
	public User() {
		super();
	}
	public User(String userid, String sno, String upassword, Double credibility) {
		super();
		Userid = userid;
		Sno = sno;
		Upassword = upassword;
		Credibility = credibility;
	}
	public String getUserid() {
		return Userid;
	}
	public void setUserid(String userid) {
		Userid = userid;
	}
	public String getSno() {
		return Sno;
	}
	public void setSno(String sno) {
		Sno = sno;
	}
	
	public String getUpassword() {
		return Upassword;
	}
	public void setUpassword(String upassword) {
		Upassword = upassword;
	}
	public Double getCredibility() {
		return Credibility;
	}
	public void setCredibility(Double credibility) {
		Credibility = credibility;
	}
	
	
	public Seat getSeat() {
		return seat;
	}
	public void setSeat(Seat seat) {
		this.seat = seat;
	}
	public Student getStudent() {
		return student;
	}
	public void setStudent(Student student) {
		this.student = student;
	}
	public List<Comments> getComments() {
		return comments;
	}
	public void setComments(List<Comments> comments) {
		this.comments = comments;
	}
	@Override
	public String toString() {
		return "User [Userid=" + Userid + ", Sno=" + Sno + ", Upassword=" + Upassword
				+ ", Credibility=" + Credibility + "]";
	}
	
	
}
